package comxin.demo1.pooldemo;
import com.mchange.v2.c3p0.DataSources;
import com.xin.pooldemo.c3p0Utils;

import java.sql.Connection;
import java.sql.SQLException;

/*
     测试c3poUtils

 */
public class c3p0Utils_test {
    public static void main(String[] args) {
        Connection conn=null;
        try {
            conn=c3p0Utils.getConncetion();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        System.out.println(conn);
        c3p0Utils.destroy();
    }

}
